package com.crm.sys.model;

import java.util.List;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;

import com.crm.base.model.BaseModel;

/** crm_role
	ID	INT(11)
	NAME	VARCHAR(50)
	DESCRIPTION	VARCHAR(21845)
	TYPE	INT(11)
	ORDERNUMBER	INT(11)
	CREATEDATE	DATETIME(19)
	UPDATEDATE	DATETIME(19)
	UPDATEUSER	DATETIME(19)
	REMARK	VARCHAR(21845)
*/
public class Role extends BaseModel {
	/**
	 * 
	 */
	private static final long serialVersionUID = 4654851979863510002L;
	private String name;//角色名称
	private String description;//角色描述
	private Integer state;
	private Integer type;//角色类型（1 超级管理员 2 管理员 3 普通用户）
	private Integer ordernumber;//顺序号
 
	private String remark;//备注
	private List<RoleProduct> rplist;

	
 
	public void setName(String name){
		this.name=name;
	}
	public String getName(){
		return name;
	}
	public void setDescription(String description){
		this.description=description;
	}
	public String getDescription(){
		return description;
	}
	public void setType(Integer type){
		this.type=type;
	}
	public Integer getType(){
		return type;
	}
	public void setOrdernumber(Integer ordernumber){
		this.ordernumber=ordernumber;
	}
	public Integer getOrdernumber(){
		return ordernumber;
	}
	public void setRemark(String remark){
		this.remark=remark;
	}
	public String getRemark(){
		return remark;
	}
	public List<RoleProduct> getRplist() {
		return rplist;
	}
	public void setRplist(List<RoleProduct> rplist) {
		this.rplist = rplist;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}
}

